//
// DISCLAIMER:
// Do not change this file because it is core styling.
// Customizing core files will make updating Atlas much more difficult in the future.
// To customize any core styling, copy the part you want to customize to styles/web/sass/app/ so the core styling is overwritten.
//

@mixin transition(
    $style: initial,
    $delay: 0s,
    $duration: 0.3s,
    $property: all,
    $timing-function: cubic-bezier(0.4, 0, 0.2, 1)
) {
    @if not $exclude-animations {
        transition: $property $duration $delay $timing-function;
        transform-style: $style;
    }
}

@mixin ripple($color: #000, $transparency: 10%, $scale: 10) {
    @if not $exclude-animations {
        position: relative;
        overflow: hidden;
        transform: translate3d(0, 0, 0);

        &:after {
            content: "";
            display: block;
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            background-image: radial-gradient(circle, $color $transparency, transparent $transparency);
            background-repeat: no-repeat;
            background-position: 50%;
            transform: scale($scale, $scale);
            opacity: 0;
            transition: transform 0.5s, opacity 1s;
        }

        &:active:after {
            transform: scale(0, 0);
            opacity: 0.1;
            transition: 0s;
        }
    }
}
